<?xml version='1.0' encoding='UTF-8' ?>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="http://richfaces.org/a4j">
    <body>
        <ui:composition template="./main-template.xhtml">
            <ui:param name="titulo" value="Menu Principal" />

            <ui:define name="body">
                <center>
                    <h:form>
                        <h:panelGrid columns="1" style="text-align:center">
                            <h:commandLink action="busquedacliente" value="Buscar Clientes" rendered="#{SecurityBean.administrator}"/>
                            <h:commandLink action="catalogo" value="Catalogo" rendered="#{SecurityBean.administrator}"/>
                            <h:commandLink action="promocion" value="Promociones" rendered="#{SecurityBean.administrator}"/>
                            <h:commandLink action="busquedacliente" value="Actualizar Datos" rendered="#{SecurityBean.client}"/>
                            <h:commandLink action="catalogoCompras" value="Carrito" rendered="#{SecurityBean.client}"/>
                            <h:commandLink action="reports" value="Reportes" rendered="#{SecurityBean.manager}"/>
                        </h:panelGrid>
                    </h:form>
                </center>
            </ui:define>
        </ui:composition>
    </body>
</html>